import requests
from lxml import etree
import re
url='https://www.diyifanwen.com/zuowen/guofangjiaoyuri/2553011.html'
headers = {
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36'
    }
response=requests.get(url,headers=headers)
response.encoding=response.apparent_encoding
data=response.text
parse=etree.HTML(data)
texts=parse.xpath('//p/text()')
# print(texts.index('\u3000\u3000国防，你是我们中国人骄傲的资本，你是我们中国人美好未来的保证。国防，你永远在我心中！'))
# print(texts[:61])
a=''
for i in texts[:61]:
    a+=i
print(a)


